# coding=utf8
import data
import recommended
import filter



r = recommended.recommender();
users = data.users;
print r.manhattan(users['Hailey'], users['Veronica']);
print r.manhattan(users['Hailey'], users['Jordyn']);
print r.minkowski(users['Hailey'], users['Jordyn'],2);
print '---------------------------';
r.pearson(users['Angelica'],users['Bill']);

r.cos(users['Angelica'],users['Veronica']);

r.approach('Hailey',users,'manhattan');

users3=data.users3;
filterClass = filter.filter();
filterClass.computeSimilarity('Kacey Musgraves', 'Lorde', users3);

filterClass.computeSimilarity('Imagine Dragons', 'Lorde', users3)
filterClass.computeSimilarity('Daft Punk', 'Lorde', users3)


